package com.yilife.hmstr.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * 经络数据
 * @author dede
 *
 */
@SuppressWarnings("serial")
@TableName(value="meridian_data")
public class MeridianData extends Model<MeridianData>{
	
	/**
	 * 主键
	 */
	@TableId(value="md_id")
	private long mdId;
	
	/**
	 * 经络名称
	 */
	@TableField(value="meridian_name")
	private String meridianName;
	
	/**
	 * 能量值
	 */
	@TableField(value="energy")
	private float energy;
	
	/**
	 * 状态
	 */
	private String state;
	
	/**
	 * 方位
	 */
	private String position;
	
	/**
	 * 外键
	 */
	@TableField(value="mt_id")
	private long mtId;
	
	public MeridianData() {
		super();
	}

	public MeridianData(long mdId, String meridianName, float energy, String state, String position, long mtId) {
		super();
		this.mdId = mdId;
		this.meridianName = meridianName;
		this.energy = energy;
		this.state = state;
		this.position = position;
		this.mtId = mtId;
	}

	public long getMdId() {
		return mdId;
	}

	public void setMdId(long mdId) {
		this.mdId = mdId;
	}

	public String getMeridianName() {
		return meridianName;
	}

	public void setMeridianName(String meridianName) {
		this.meridianName = meridianName;
	}

	public float getEnergy() {
		return energy;
	}

	public void setEnergy(float energy) {
		this.energy = energy;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public long getMtId() {
		return mtId;
	}

	public void setMtId(long mtId) {
		this.mtId = mtId;
	}

	@Override
	public String toString() {
		return "MeridianData [mdId=" + mdId + ", meridianName=" + meridianName + ", energy=" + energy + ", state="
				+ state + ", position=" + position + ", mtId=" + mtId + "]";
	}

	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return mdId;
	}
	

}
